package demo14;

import java.util.Scanner;

public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = scanner.nextInt();
        }
//        for(int x : arr) {
//            System.out.println(x);
//        }
        int min = arr[0];
        int max = arr[0];
        int mul = 1;
        int sum = 0;
        int count = 0;
        for (int i = 0; i < n; i++) {
            if(min > arr[i]){
                min = arr[i];
            }
            if(max < arr[i]){
                max = arr[i];
            }
            sum += arr[i];
            mul *= arr[i];
        }
        if(sum > mul) {
            count++;
        }


    }


}
